package org.jeecg.modules.wlhy.bill.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.wlhy.bill.dto.HyCarrierBillDTO;
import org.jeecg.modules.wlhy.bill.entity.HyCarrierBill;
import org.jeecg.modules.wlhy.bill.mapper.HyCarrierBillMapper;
import org.jeecg.modules.wlhy.bill.service.IHyCarrierBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: hy_carrier_bill
 * @Author: jeecg-boot
 * @Date:   2021-03-15
 * @Version: V1.0
 */
@Service
public class HyCarrierBillServiceImpl extends ServiceImpl<HyCarrierBillMapper, HyCarrierBill> implements IHyCarrierBillService {


    @Autowired
    private HyCarrierBillMapper hyCarrierBillMapper;
    @Override
    public HyCarrierBill getBillByShippingId(String shipping_id) {
        return this.getOne(new QueryWrapper<HyCarrierBill>().eq("shipping_id", shipping_id));
    }

    @Override
    public IPage<HyCarrierBillDTO> queryPgList(Page<HyCarrierBillDTO> page, QueryWrapper<HyCarrierBillDTO> queryWrapper) {
        return hyCarrierBillMapper.queryPgList(page,queryWrapper);
    }




}
